package number_320;

import java.util.ArrayList;
import java.util.List;

public class Solution {
    private List<String> res = new ArrayList<>();
    public List<String> generateAbbreviations(String word) {
        StringBuilder sb = new StringBuilder();
        if (sb.length() == 0) {
            res.add(new String(sb.toString()));
            return res;
        }
        for (int i = 0; i < word.length(); i++) {
            sb.append(word.charAt(i));
            generateAbbreviations(word.substring(i + 1, word.length()));
            sb.deleteCharAt(i);
        }
        return null;
    }
}
